package com.jumi.microservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jumi.microservice.domain.RotationChart;
import com.jumi.microservice.domain.dto.RotationChartDTO;
import com.jumi.microservice.domain.vo.RotationChartVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface RotationChartService extends IService<RotationChart> {
    /**
     * 查询数据
     * @param id
     * @return
     */
    RotationChartDTO selectById(Long id);

    /**
     * 插入数据
     * @param dto
     * @param request
     */
    void insert(RotationChartDTO dto, HttpServletRequest request);

    /**
     * 编辑一条数据
     * @param dto
     * @param request
     */
    void update(RotationChartDTO dto,HttpServletRequest request);

    /**
     * 删除一条数据
     * @param id
     */
    void delete(Long id,HttpServletRequest request);

    /**
     * 编辑上下架状态
     * @param id
     * @param status
     * @param request
     */
    void enableStatus(Long id, Integer status,HttpServletRequest request);

    List<RotationChartVO> selectRotationChartList();
}
